package com.blogSystem.article.client;

import com.alibaba.fastjson.JSON;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("blog-system-user")
public interface UserClient {


  @RequestMapping(value = "/user/getUserById",method = RequestMethod.GET)
  public String getUserById(@RequestParam String id);

  @RequestMapping(value = "/getUserByName",method = RequestMethod.GET)
  public String getUserByName(@RequestParam String username);

}
